# include <iostream>


using namespace std;

int main()
{
    cout << "基础数据类型所占字节大小如下：" << endl;
    cout << "字符型char:" << sizeof(char) << endl;
    // cout << "无符号字符型unsigned char:" << sizeof(char);
    cout << "布尔型bool:" << sizeof(bool) << endl;
    cout << "短型short:" << sizeof(short) << endl;
    cout << "整型int:" << sizeof(int) << endl;
    cout << "长型long:" << sizeof(long) << endl;
    cout << "单精度浮点型float:" << sizeof(float) << endl;
    cout << "双精度浮点型double:" << sizeof(double) << endl;
    cout << "长双精度浮点型long double:" << sizeof(long double) << endl;
    cout << "char,short,int,long前面加unsigned为无符号的形式,\
    与有符号的占的字节相同" << endl;
}




